<template>
  <div class="loading_container" v-show="visible">
    <div class="loading_wrapper">
      <div class="loading_content">
        <img src="../../assets/1.gif" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      visible: false,
    };
  },
  methods: {
    close() {
      setTimeout(() => {
        this.visible = false;
      }, 3000);
    },
  },
};
</script>

<style scoped>
.loading_container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.loading_wrapper {
  width: 100%;
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.loading_wrapper img {
  width: 100%;
  height: 100%;
}
</style>
